package com.wuba.baojie.service;


import com.wuba.baojie.controller.SignListVo;
import com.wuba.baojie.dto.*;
import com.wuba.baojie.pojo.Apply;
import com.wuba.baojie.vo.ApplyListVo;
import com.wuba.baojie.vo.LoginVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface WeChatService {

    /**
     * 微信登录
     * @param code
     * @return
     */
    LoginVo weChatLogin(String code) throws Exception;


    /**
     * 签到
     * @param
     */
    int sign(SignDto signDto) throws Exception;

    /**
     * 获取积分
     * @param scoringDto
     */
    void scoring(ScoringDto scoringDto);



    Object  getPhoneNumber(PhoneNumberDto phoneNumberDto);

    String getVideo(VideoDto videoDto);

    /**
     * 生成二维码扫码加入机构
     * @param instrumentId
     * @param response
     * @return
     */
    String joinCode(String sencen, HttpServletRequest request) throws IOException;

     void getQRCode(HttpServletResponse res,String sences) throws Exception;

    /**
     * 考勤导出
     * @param start
     * @param end
     * @return
     */
    List<SignListVo> signList(String start, String end);

    /**
     * 申领
     * @param applyDto
     */
    void apply(ApplyDto applyDto) throws Exception;

    /**
     * 列表
     * @param address
     * @return
     */
    Apply applyList(String address);

    /**
     * 列表
     * @param address
     * @return
     */
    List<Apply> applyLists();
}
